package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.EmailSend;
import com.zhijian.medical.entity.vo.request.EmailSendSearchVo;
import com.zhijian.medical.entity.vo.response.EmailSendVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmailSendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(EmailSend record);

    int insertSelective(EmailSend record);

    EmailSend selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(EmailSend record);

    int updateByPrimaryKey(EmailSend record);

    /**
     * 查询总数
     *
     * @param emailSendSearchVo
     * @return
     */
    int count(EmailSendSearchVo emailSendSearchVo);

    /**
     * 查询列表
     *
     * @param emailSendSearchVo
     * @return
     */
    List<EmailSendVo> selectList(EmailSendSearchVo emailSendSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    EmailSendVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<EmailSend> entities);

    List<EmailSend> selectFixList();

}